/**
 * @page: 订单规则
 * @author:elelee
 */
import React, { useState } from 'react';
import { Tabs } from 'antd';
import TabExcelUpload from './components/TabExcelUpload';
import TabImportPreview from './components/TabImportPreview';
const { TabPane } = Tabs;
const OrderRule = () => {
	const [tab, setTab] = useState('0');
	return (
		<div className="zjf-container-nof">
			<Tabs activeKey={tab} defaultActiveKey="0" onChange={(val) => {
				setTab(val);
			}}>
				<TabPane tab="导入订单" key="0">
					<TabExcelUpload changeVal={() => setTab('1')} />
				</TabPane>
				<TabPane tab="导入预览" key="1">
					<TabImportPreview tab={tab} />
				</TabPane>
			</Tabs>
		</div>
	);
};
export default OrderRule;
